package modele;

public class RegisteredLetter<L extends Letter<?>> extends LetterDecorator<L> {

	protected static final int base_cost = 15;

	public RegisteredLetter(Letter<Content> contentLetter) {
		super(contentLetter);
	}

	@Override
	public int getCost() {
		return base_cost + letter.getCost();
	}

	@Override
	public void doAction() {
		receiver.sendLetter(new AcknowledgmentLetter(this));
		letter.doAction();
	}

	@Override
	public String getType() {
		return "registered letter";
	}

}
